package com.example.demo.mapper;

import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: zm
 * Date: 2023/6/14
 */

@Mapper
public interface UserMapper {
    User getUserByName(@Param("u_loginName") String u_loginName);

    List<User> getAnyUser();

    int myDel(@Param("code") String code);

    int add(User user);

    int update(@Param("u_loginName") String u_loginName,@Param("password1") String password1);
}
